import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/6/28
 * @apiNote
 */
/*从键盘输入姓名、性别，然后根据性别（男、女）分别输出问候语
**/
public class Homework1_3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入姓名：");
        String name = input.next();

        System.out.print("请输入性别：(男/女)");
        char sex = input.next().charAt(0);

        switch (sex) {
            case '男':
                System.out.println("Good morning,gentleman " + name);
                break;
            case '女':
                System.out.println("Good morning,lady " + name);
                break;
            default:
                System.out.println("请输入正确的性别！");
        }
        input.close();
    }
}
